<?php
namespace App\Services\Export;

use PhpOffice\PhpWord\TemplateProcessor;
use App\Services\Export\WordNotice;

class WordChoose 
{
    static public function choose(TemplateProcessor $templateProcessor,$wordtype)
    {
        switch ($wordtype) {
            case 'notice':
                return new WordNotice($templateProcessor);
                break;
            case 'nineCheckAgainLog':
                return new WordNineCheckAgainLog($templateProcessor);
                break;
	        case 'risk':
	        	return new WordRisk($templateProcessor);
	        	break;
            case 'archives':
                return new WordArchives($templateProcessor);
                break;
            default:
                # code...
                break;
        }
    }
}